Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented May 2, 2025

This extends the retry utility method with timeout, headers and caller-provided client. However, on a retry, this client is not recreated (whether and how to express this is to be done in a subsequent PR).

@isoos isoos requested review from jonasfj and sigurdm May 2, 2025 14:54
}
throw http.ClientException(
'Unexpected status code for $uri: ${rs.statusCode}.');
throw UnexpectedStatusException(rs.statusCode, uri);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps document that the retry function can check for this.

@isoos isoos merged commit ede1eac into dart-lang:master May 5, 2025
31 checks passed
@isoos isoos deleted the http-retry-search branch May 5, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants